package com.treasure.infrastructure.model.event;

import lombok.*;
import org.springframework.context.ApplicationEvent;

import java.time.LocalDateTime;

/**
 * @author sunhongmin
 * @date 2024/1/14 10:12
 * @description
 */
@Getter
@Setter
@ToString
public class ConversationEvent extends ApplicationEvent {
    public ConversationEvent(Object source) {
        super(source);
    }

    /**
     * 企业ID
     */
    private String corpId;

    /**
     * 提问人
     */
    private String userId;

    /**
     * 提问
     */
    private String question;

    /**
     * 答案
     */
    private String answer;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 机器人ID
     */
    private Integer robotId;

    /**
     * 输入token统计
     */
    private Integer inputTokens;

    /**
     * 输出token统计
     */
    private Integer outputTokens;

    /**
     * 云厂商
     */
    private String manufacturer;

    /**
     * 模型
     */
    private String model;
}
